using System.Windows.Forms;
using Belmost4PDA.Constants;
using Belmost4PDA.Fasade;

namespace Belmost4PDA.Logic
{
    public class Control_GridItem:AbstractControl
    {
        public readonly GridItem GI;
        public Control_GridItem(GridItem gridItem)
        {
            GI = gridItem;   
        }

        public override string GetControlType()
        {
            return ControlType.GridItem;
        }

        public override AbstractMapper GetMapper()
        {
            return new Mapper_GridItem(this);
        }

        public override Control GetFormControl()
        {
            return null;
        }
        public virtual ColumnHeader GetListViewControl()
        { ColumnHeader ch=new ColumnHeader();
            ch.Text = GI.Title;
            ch.Width = GI.Width;
            return ch;
        }
        public override string GetCaption()
        {
            return GI.Title;
        }
    }
}
